<html>

<head>
    <meta charset="utf-8">
    <meta name="author" content="xsl">
    <script src="jquery-3.1.1.js"></script>
    <title>翻转切换</title>
    <style>
        *{
            box-sizing: border-box;
        }
        .outer{
            width: 350px;
            height: 410px;
            border: 1px solid #ccc;
            margin: 100px auto;
        }
        h1{
           font-size: 18px;
           border-bottom: 2px solid #000;
           text-align: center;
           height: 30px;
        }
        ul,li{
            padding: 0;
            margin: 0;
            list-style: none;
        }
        ul{
            width: 260px;
            display: flex;
            flex-wrap: wrap; 
            margin: 0 auto;
        }
        ul li{
            margin: 4px;
            position: relative;
            cursor: pointer;
        }
        span{
            display: inline-block;
            position: absolute;
            top: 0;
            left: 0;
            background-color: #f99e39;
            width: 120px;
            height: 75px;
            color: white;
            text-align: center;
            line-height: 75px;
            font-weight: bold;
            -webkit-transform: rotateX(90deg);
            -moz-transform:rotateX(90deg);
        }
        .fan:hover{
             transition: 1s ease-in-out;
            -webkit-transform: rotateX(90deg);
            -moz-transform:rotateX(90deg);
        }
        .zheng:hover{
             transition: 1s ease-in-out;
            -webkit-transform: rotateX(-90deg);
            -moz-transform:rotateX(-90deg);
        }
        img{
            border: 1px solid #ccc;
        }
    </style>
</head>

<body>
    <div class="outer">
        <h1>热门品牌推荐</h1>
        <ul>
            <li><img src="img/11.jpg" alt=""><span>肌龄</span></li>
            <li><img src="img/22.jpg" alt=""><span>美即</span></li>
            <li><img src="img/33.jpg" alt=""><span>Missha</span></li>
            <li><img src="img/44.jpg" alt=""><span>伊人尚品</span></li>
            <li><img src="img/55.jpg" alt=""><span>aupres</span></li>
            <li><img src="img/66.jpg" alt=""><span>静佳</span></li>
            <li><img src="img/77.jpg" alt=""><span>thefaceshop</span></li>
            <li><img src="img/88.jpg" alt=""><span>美丽加芬</span></li>
        </ul>
    </div>
</body>

</html>
<script>
      $('ul li').hover(function(){
          $(this).find('img').css({
            transition: '0.3s ease-out',
            transform: 'rotateX(90deg)',
          })
          $(this).find('span').css({
            transition: '0.3s ease-in',
            transform: 'rotateX(0deg)',
          })
      },function(){
          $(this).find('img').css({
            transition: '0.3s ease-in',
            transform: 'rotateX(0deg)',
          })
          $(this).find('span').css({
            transition: '0.3s ease-out',
            transform: 'rotateX(90deg)',
          })
      })
</script>